<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: Inc/SBUS.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project<span id="projectnumber">&#160;1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f93dfce691d792349f1c14ede440e2e6.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle"><div class="title">SBUS.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;main.h&quot;</code><br />
</div>
<p><a href="_s_b_u_s_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_b_u_s___c_h.html">SBUS_CH</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS状态结构体  <a href="struct_s_b_u_s___c_h.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a0eb14764b7d79cc11d6e5d04cab47fc1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#a0eb14764b7d79cc11d6e5d04cab47fc1">SBUS_BUFFER_SIZE</a>&#160;&#160;&#160;50</td></tr>
<tr class="memdesc:a0eb14764b7d79cc11d6e5d04cab47fc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS缓存区大小  <br /></td></tr>
<tr class="separator:a0eb14764b7d79cc11d6e5d04cab47fc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52f9a3a2bf446dbaf5f46770d6376727"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#a52f9a3a2bf446dbaf5f46770d6376727">SBUS_FRAME_SIZE</a>&#160;&#160;&#160;25</td></tr>
<tr class="memdesc:a52f9a3a2bf446dbaf5f46770d6376727"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS数据包大小  <br /></td></tr>
<tr class="separator:a52f9a3a2bf446dbaf5f46770d6376727"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3b2b5247a4c3e7e0d5c9eda5109fb72"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#af3b2b5247a4c3e7e0d5c9eda5109fb72">SBUS_FRAME_HEADER</a>&#160;&#160;&#160;0x0F</td></tr>
<tr class="memdesc:af3b2b5247a4c3e7e0d5c9eda5109fb72"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS帧头  <br /></td></tr>
<tr class="separator:af3b2b5247a4c3e7e0d5c9eda5109fb72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a606b171ae009f4c9da0ff6a32de11325"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#a606b171ae009f4c9da0ff6a32de11325">SBUS_FRAME_FOOTER</a>&#160;&#160;&#160;0x00</td></tr>
<tr class="memdesc:a606b171ae009f4c9da0ff6a32de11325"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS帧尾  <br /></td></tr>
<tr class="separator:a606b171ae009f4c9da0ff6a32de11325"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:acfde23885769240b79347341938fa1c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#acfde23885769240b79347341938fa1c6">SBUS_Analyze</a> (void)</td></tr>
<tr class="memdesc:acfde23885769240b79347341938fa1c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS接受与解码  <br /></td></tr>
<tr class="separator:acfde23885769240b79347341938fa1c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:af938609143ba6f0252e697394a2ff8ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_s_b_u_s___c_h.html">SBUS_CH</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#af938609143ba6f0252e697394a2ff8ed">SBUS</a></td></tr>
<tr class="memdesc:af938609143ba6f0252e697394a2ff8ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS状态  <br /></td></tr>
<tr class="separator:af938609143ba6f0252e697394a2ff8ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64486f5f617b54d015d9b9b146d0fc17"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_b_u_s_8h.html#a64486f5f617b54d015d9b9b146d0fc17">SBUS_RX_BUF</a> [<a class="el" href="_s_b_u_s_8h.html#a0eb14764b7d79cc11d6e5d04cab47fc1">SBUS_BUFFER_SIZE</a>]</td></tr>
<tr class="memdesc:a64486f5f617b54d015d9b9b146d0fc17"><td class="mdescLeft">&#160;</td><td class="mdescRight">SBUS接收缓冲区  <br /></td></tr>
<tr class="separator:a64486f5f617b54d015d9b9b146d0fc17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>陶子辰 (<a href="#" onclick="location.href='mai'+'lto:'+'240'+'59'+'734'+'06'+'@qq'+'.c'+'om'; return false;">24059<span class="obfuscator">.nosp@m.</span>7340<span class="obfuscator">.nosp@m.</span>6@qq.<span class="obfuscator">.nosp@m.</span>com</a>) </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2023-07-12</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (c) 2023 </dd></dl>

<p class="definition">Definition in file <a class="el" href="_s_b_u_s_8h_source.html">SBUS.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a0eb14764b7d79cc11d6e5d04cab47fc1" name="a0eb14764b7d79cc11d6e5d04cab47fc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0eb14764b7d79cc11d6e5d04cab47fc1">&#9670;&#160;</a></span>SBUS_BUFFER_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SBUS_BUFFER_SIZE&#160;&#160;&#160;50</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SBUS缓存区大小 </p>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8h_source.html#l00027">27</a> of file <a class="el" href="_s_b_u_s_8h_source.html">SBUS.h</a>.</p>

</div>
</div>
<a id="a606b171ae009f4c9da0ff6a32de11325" name="a606b171ae009f4c9da0ff6a32de11325"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a606b171ae009f4c9da0ff6a32de11325">&#9670;&#160;</a></span>SBUS_FRAME_FOOTER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SBUS_FRAME_FOOTER&#160;&#160;&#160;0x00</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SBUS帧尾 </p>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8h_source.html#l00033">33</a> of file <a class="el" href="_s_b_u_s_8h_source.html">SBUS.h</a>.</p>

</div>
</div>
<a id="af3b2b5247a4c3e7e0d5c9eda5109fb72" name="af3b2b5247a4c3e7e0d5c9eda5109fb72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3b2b5247a4c3e7e0d5c9eda5109fb72">&#9670;&#160;</a></span>SBUS_FRAME_HEADER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SBUS_FRAME_HEADER&#160;&#160;&#160;0x0F</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SBUS帧头 </p>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8h_source.html#l00031">31</a> of file <a class="el" href="_s_b_u_s_8h_source.html">SBUS.h</a>.</p>

</div>
</div>
<a id="a52f9a3a2bf446dbaf5f46770d6376727" name="a52f9a3a2bf446dbaf5f46770d6376727"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52f9a3a2bf446dbaf5f46770d6376727">&#9670;&#160;</a></span>SBUS_FRAME_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SBUS_FRAME_SIZE&#160;&#160;&#160;25</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SBUS数据包大小 </p>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8h_source.html#l00029">29</a> of file <a class="el" href="_s_b_u_s_8h_source.html">SBUS.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="acfde23885769240b79347341938fa1c6" name="acfde23885769240b79347341938fa1c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfde23885769240b79347341938fa1c6">&#9670;&#160;</a></span>SBUS_Analyze()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SBUS_Analyze </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SBUS接受与解码 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8c_source.html#l00045">45</a> of file <a class="el" href="_s_b_u_s_8c_source.html">SBUS.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="af938609143ba6f0252e697394a2ff8ed" name="af938609143ba6f0252e697394a2ff8ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af938609143ba6f0252e697394a2ff8ed">&#9670;&#160;</a></span>SBUS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_s_b_u_s___c_h.html">SBUS_CH</a> SBUS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>SBUS状态 </p>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8c_source.html#l00032">32</a> of file <a class="el" href="_s_b_u_s_8c_source.html">SBUS.c</a>.</p>

</div>
</div>
<a id="a64486f5f617b54d015d9b9b146d0fc17" name="a64486f5f617b54d015d9b9b146d0fc17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64486f5f617b54d015d9b9b146d0fc17">&#9670;&#160;</a></span>SBUS_RX_BUF</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t SBUS_RX_BUF[<a class="el" href="_s_b_u_s_8h.html#a0eb14764b7d79cc11d6e5d04cab47fc1">SBUS_BUFFER_SIZE</a>]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>SBUS接收缓冲区 </p>

<p class="definition">Definition at line <a class="el" href="_s_b_u_s_8c_source.html#l00034">34</a> of file <a class="el" href="_s_b_u_s_8c_source.html">SBUS.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>
